package com.xyz;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class Test {

    private static final Logger logger = LogManager.getLogger(Test.class);

    public static void main(String[] args) {
        //String user = "zhangsan";

        //String user = "${java:vm}";
        //String user = "${java:version}";
        //String user = "${java:runtime}";
        String user = "${java:os}";
        //String user = "${java:locale}";
        //String user = "${java:hw}";

        //jndi注入

        logger.info("user {}", user);
    }
}
